import React, { Component } from 'react'

// vue中插槽
// react 有 children
class Title extends Component {
  render () {
    return (
      <div>
        书名：{ this.props.children } 
      </div>
    )
  }
}
class App extends Component {
  render() {
    return (
      <div>
        <Title>HTML5权威指南</Title>
        <Title>JAVASCRIPT权威指南</Title>
        <Title>VUE权威指南</Title>
      </div>
    )
  }
}


export default App
